import request from '@/router/axios';
import {baseUrl} from '@/config/env';

export const listJob = (data) => request({
    url: baseUrl + '/sys/sysJob/page',
    method: 'post',
    data: data
});
export const addJob = (data) => request({
    url: baseUrl + '/sys/sysJob',
    method: 'post',
    data: data
});
export const startJob = (data) => request({
    url: baseUrl + '/sys/sysJob/start',
    method: 'post',
    data: data
});

export const delJob = (ids) => request({
    url: baseUrl + '/sys/sysJob/' + ids,
    method: 'delete',
});
export const runOneJob = (id) => request({
    url: baseUrl + '/sys/sysJob/run/' + id,
    method: 'get',
});
export const updateJob = (data) => request({
    url: baseUrl + '/sys/sysJob',
    method: 'put',
    data: data
});

